package com.weiiew.recipeservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weiiew.common.entity.dto.RecipeProduct;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 魏锴
 * @description 针对表【recipe_product】的数据库操作Mapper
 * @createDate 2024-02-12 12:47:07
 * @Entity com.example.adminBackEnd.Entity.dao.RecipeProduct
 */
@Mapper
public interface RecipeProductMapper extends BaseMapper<RecipeProduct> {
    @Delete("delete from recipe_product where recipe_id = #{id};")
    void deleteByRecipe(Long id);
}




